import request from '@/utils/request'

export function mergecart(arr){
    return request({
        url: "/member/cart/merge",
        method: "post",
        data:arr
    })
}


export function cartlist(){
    return request({
        url:"/member/cart",
        method: "get",
    })
}


export function cartAdd(skuId,count){
    return request({
        url:"/member/cart",
        method: "post",
        data:{skuId,count}
    })
}



export function cartDel(ids, clearAll=false,clearInvalid=false){
    return request({
        url:"/member/cart",
        method: "delete",
        data:{ids,clearAll,clearInvalid}
    })
}



